home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / brklyprl.lha / Emulator / BuiltIns / make_skels < prev    next >
Encoding:
Text File  |  1989-04-14  |  419 b   |  17 lines

  1. #! /bin/csh -f
  2. rm -f built_ins.h
  3. touch built_ins.h
  4. foreach i (`cat files`)
  5.     set i = `echo $i | sed 's/\~/ /g'`
  6.     set filename = $i[1].h
  7.     set name = '"'$i[2]'"'
  8.     set ID = `echo $i[1] | upcase`
  9.     set fn = `echo $i[1] | chcase`
  10.     echo "#ifdef NAMES" >! $filename
  11.     echo "use($ID,$name,$fn)" >> $filename
  12.     echo "#endif" >> $filename
  13.     echo '#include "BuiltIns/'$filename'"' >> built_ins.h
  14.     echo $name done
  15. end
  16. mv built_ins.h ..
  17.